<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Html事件响应</title>
    <link rel="stylesheet" href="style.css">
    <script src="demo02.js"></script>
</head>

<body>
    <!-- 点击事件和显示事件对象主要属性 -->
    <div id="div1" onclick="div1click()">
    </div>
    <div id="div2">
    </div>
</body>

</html>